import Vue from 'vue'
import App from './App.vue'
import * as API from '@/api'
import router from './router'
import store from './store'
import './global.css'
import {
  Button,
  Modal,
  List,
  Menu,
  Row,
  Col,
  Layout,
  Pagination,
  Input,
  Form,
  message,
  Divider,
  BackTop,
  Upload,
  Skeleton,
  InputNumber,
  Radio,
  Table,
  Tabs,
  Select, Icon,
} from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css'
// 局部加载，大概能省 1/5 的空间
Vue.use(Button).use(Modal).use(List).use(Menu).use(Row).use(Col).use(Layout).use(Pagination)
    .use(Input).use(Form).use(Divider).use(BackTop).use(Upload).use(Skeleton).use(Table)
    .use(InputNumber).use(Radio).use(Tabs).use(Select).use(Icon).use(Modal);
Vue.config.productionTip = false
Vue.prototype.$message = message;
new Vue({
  beforeCreate() {
    Vue.prototype.$bus=this,
        Vue.prototype.$API=API
  },
  render: h => h(App),
  router,
  store
}).$mount('#app')
